package com.cet.regularexpression;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-06-22 14:41
 **/
public class Main11 {

    private static Pattern MY_PATTERN = Pattern.compile("\\wo\\w");

    public static void main(String[] args) {
        String s = "the quick brown fox jumps over the lazy dog.";
        Matcher matcher = MY_PATTERN.matcher(s);
        while (matcher.find()) {
            System.out.println(s.substring(matcher.start(), matcher.end()));
        }
    }
}
